export const getTimePeriod = () => {
  const hours = new Date().getHours()
  let message: string = ''
  if (hours >= 7 && hours <= 10) {
    message = '早上好'
  } else if (hours >= 10 && hours <= 15) {
    message = '中午好'
  } else if (hours >= 14 && hours <= 19) {
    message = '下午好'
  } else if (hours >= 20 && hours <= 23) {
    message = '晚上好'
  } else {
    message = '夜深了，注意休息'
  }
  return message
}
